package enity;

public class student {
    private String studentname;
    private  int studentage;
    private  String studentgender ;
    private     int studentid ;
    double studentgpa;
    boolean inscholle ;
    String nianji;
    String phone;
    public void displayInfo() {
        System.out.println("姓名 " + studentname);
        System.out.println("年纪 " + studentage);
        System.out.println("学号" + studentid);
        System.out.println("年级" + nianji);
        System.out.println("电话" + phone);
    }
    //无参构造
//    public enity.student(){
//        System.out.println("diaoyong" );
//    }
    //有参构造
    public student(String studentname, int studentage,String studentgender, int studentid,double studentgpa,boolean inscholle,String nianji,String phone){
        this.studentname=studentname;
        this.studentage=studentage;
        this.studentgender=studentgender;
        this.studentid=studentid;
        this.studentgpa=studentgpa;
        this.inscholle=inscholle;
        this.nianji=nianji;
        this.phone=phone;

    }
}